<%@ page contentType="text/html" language="java" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib  uri="/struts-tags" prefix="s"%>
<jsp:include page="../include/_dwz_form_head.jsp" />
<c:if test="${b_T_Ufp_Material!=null }">
<div class="pageHeader" style="border:1px #B8D0D6 solid">
	<div class="pageHeader">
	<%-- <c:choose>
		<c:when test="${b_T_Ufp_Material.categoryStatus ==0}"> --%>
			<form rel="pagerForm" onsubmit="return divSearch(this, '${b_T_Ufp_Material.categoryStatus ==0?'materialList':'materialListH'}');" action="systemsetting/Material_materialList?flag=${b_T_Ufp_Material.categoryName },${b_T_Ufp_Material.categoryUuid},${b_T_Ufp_Material.categoryStatus}" method="post">
		<%-- </c:when>
		<c:otherwise>
		 	<form rel="pagerForm" onsubmit="return divSearch(this, 'materialListH');" action="systemsetting/Material_materialList?flag=${b_T_Ufp_Material.categoryName },${b_T_Ufp_Material.categoryUuid},${b_T_Ufp_Material.categoryStatus}" method="post">
		</c:otherwise>
	</c:choose> --%>
	<div class="searchBar">
			   <ul class="searchContent">
                <li>
                    <label>
                      材料编号：
                    </label>
                    <input type="text" id="materialName" name="b_T_Ufp_Material.materialName" value="${b_T_Ufp_Material.materialName }"/>
                </li>
               <%--  <li>
                    <label>
                        真实姓名：
                    </label>
                    <input type="text" id="realName" name="b_T_Ufp_Material.realName"  value="${b_T_Ufp_Material.realName}"/>
                </li> --%>
            </ul>
             <div class="subBar">
                <ul>
                    <li>
                        <div class="buttonActive">
                            <div class="buttonContent">
                                <button type="submit">
                                    搜索
                                </button>
                            </div>
                        </div>
                    </li>
                  
                </ul>
            </div>
		</div>
	</form>
</div>
<div class="pageContent" style="border-left:1px #B8D0D6 solid;border-right:1px #B8D0D6 solid">
<div class="panelBar">
		 <ul class="toolBar">
            <li>
                <a class="add" href="systemsetting/Material_materialDetail?flag=${b_T_Ufp_Material.categoryName },${b_T_Ufp_Material.categoryUuid},${b_T_Ufp_Material.categoryStatus}" target="dialog" rel="materialDetail"  width="530" height="460"><span>添加</span></a>
            </li>
            <li>
                <a title="确实要删除这些记录吗?" target="selectedTodo" rel="checkIds" href="systemsetting/Material_materialDelete?b_T_Ufp_Material.categoryStatus=${b_T_Ufp_Material.categoryStatus}" class="delete"><span>删除</span></a>
          
            <li class="line">
                line
            </li>
        </ul>
	</div>
	<table class="table" width="100%" layoutH="182" rel="${b_T_Ufp_Material.categoryStatus ==0?'materialList':'materialListH'}">
		<thead>
			 <tr>
                <th width="2%">
                    <input type="checkbox" name="checkIds" group="checkIds" class="checkboxCtrl">
                </th>
                <th width="4%" >
              序号        
                </th>
                 <th width="10%" orderField="material_name" <c:if test="${(pager.orderField)== 'material_name' }">class="${pager.orderDirection}"</c:if>>
             材料编号
                </th>
             
                <th width="10%" orderField="material_model" <c:if test="${(pager.orderField)== 'material_model' }">class="${pager.orderDirection}"</c:if>>
                  材料型号
                </th>
                 <th width="10%" orderField="finishes" <c:if test="${(pager.orderField)== 'finishes' }">class="${pager.orderDirection}"</c:if>>
               饰面
                </th>
                 <th width="10%" orderField="material_brand" <c:if test="${(pager.orderField)== 'material_brand' }">class="${pager.orderDirection}"</c:if>>
                  品牌
                </th>
                 <th width="10%" orderField="unit" <c:if test="${(pager.orderField)== 'unit' }">class="${pager.orderDirection}"</c:if>>
                  单位
                </th>
                 <th width="10%" orderField="angebotspreis" <c:if test="${(pager.orderField)== 'angebotspreis' }">class="${pager.orderDirection}"</c:if>>
                  客户报价
                </th>
                  <th width="10%" orderField="Producter" <c:if test="${(pager.orderField)== 'Producter' }">class="${pager.orderDirection}"</c:if>>
               产地
                </th>
                <%--  <th width="10%" orderField="remark" <c:if test="${(pager.orderField)== 'remark' }">class="${pager.orderDirection}"</c:if>>
                  附加说明
                </th> --%>
                <th width="8%">
                    操作
                </th>
            </tr>
		</thead>
		<tbody>
			<c:forEach items="${pager.pageRecords}" var="b_T_Ufp_Material" varStatus="s">
            <tr target="sid_user" rel="1">
                <td>
                    <input name="checkIds" value="${b_T_Ufp_Material.uuid}" type="checkbox">
                </td>
                 <td>
                  ${s.count +pager.pageSize*(pager.currentPage-1)}
                </td>
                <td>
                    ${b_T_Ufp_Material.materialName }
                </td>
                  <td>
                    ${b_T_Ufp_Material.materialModel }
                </td>
                 <td>
                    ${b_T_Ufp_Material.finishes }
                </td>
                <td>
                    ${b_T_Ufp_Material.materialBrand }
                </td>
                <td>
                    ${b_T_Ufp_Material.unit }
                </td>
                <td>
                    ${b_T_Ufp_Material.angebotspreis }
                </td>
                <td>
               		 ${b_T_Ufp_Material.producter }
              	      <%-- ${b_T_Ufp_Material.remark } --%>
                </td>
                <td>
                    <a title="删除"  target="ajaxTodo" href="systemsetting/Material_materialDelete?checkIds=${b_T_Ufp_Material.uuid}&b_T_Ufp_Material.categoryStatus=${b_T_Ufp_Material.categoryStatus}" class="btnDel">删除</a>
                    <a title="编辑" target="dialog" rel="materialDetail"  width="530" height="460" href="systemsetting/Material_materialDetail?b_T_Ufp_Material.uuid=${b_T_Ufp_Material.uuid }&b_T_Ufp_Material.categoryStatus=${b_T_Ufp_Material.categoryStatus}"  class="btnEdit">编辑</a>
                </td>
            </tr>
            </c:forEach>
		</tbody>
	</table>
	<div class="panelBar">
	 <div class="pages">
            <span>显示</span>
            <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value}, '${b_T_Ufp_Material.categoryStatus ==0?'materialList':'materialListH'}')">
            <option value="5" ${pager.pageSize == 5?'selected=\"selected\"':''}>5</option>
            <option value="10" ${pager.pageSize == 10?'selected=\"selected\"':''}>10</option>
            <option value="15" ${pager.pageSize == 15?'selected=\"selected\"':''}>15</option>
            <option value="20" ${pager.pageSize == 20?'selected=\"selected\"':''}>20</option>
            <option value="25" ${pager.pageSize == 25?'selected=\"selected\"':''}>25</option>
            <option value="30" ${pager.pageSize == 30?'selected=\"selected\"':''}>30</option>
            <option value="35" ${pager.pageSize == 35?'selected=\"selected\"':''}>35</option>
		    <option value="40" ${pager.pageSize == 40?'selected=\"selected\"':''}>40</option>
            <option value="45" ${pager.pageSize == 45?'selected=\"selected"':''}>45</option>
            <option value="50" ${pager.pageSize == 50?'selected=\"selected\"':''}>50</option>
            <option value="100" ${pager.pageSize == 100?'selected=\"selected\"':''}>100</option>
            <option value="150" ${pager.pageSize == 150?'selected=\"selected\"':''}>150</option>
            <option value="200" ${pager.pageSize == 200?'selected=\"selected\"':''}>200</option>
            </select>
            <span>条，共${pager.totalRecords}条</span>
        </div>
        <div class="pagination" rel="${b_T_Ufp_Material.categoryStatus ==0?'materialList':'materialListH'}" totalCount="${pager.totalRecords}" numPerPage="${pager.pageSize}" pageNumShown="10" currentPage="${pager.currentPage}">
        </div>
	</div>
</div>
</c:if>